package com.lili.store.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lili.model.store.SelectStore;
import com.lili.common.crud.BaseServiceImpl;
import com.lili.store.mapper.SelectStoreMapper;
import com.lili.store.service.SelectStoreService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class SelectStoreServiceImpl extends BaseServiceImpl<SelectStore, SelectStoreMapper> implements SelectStoreService {
    @Override
    public List<SelectStore> listselect() {
        return baseMapper.listSelect() ;
    }

    @Override
    public Page<SelectStore> queryByPage(int current, int size) {

        Page<SelectStore> page = new Page<>(current,size);
        baseMapper.selectPage(page,null);
        return page;
    }
}
